<?php
class PostController extends FrontendController
{
    public function actionList()
    {
        $categoryid = $_REQUEST['categoryid'];
        $this->data['categoryid'] = $categoryid;

        $this->render('list',$this->data);
    }

    public function actionView()
    {
        $this->data['postId'] = $_REQUEST['post_id'];
        $this->render('view',$this->data);
    }

}